package com.hyy.api.domain.sms.cmpp2;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document(collection = ReportLog.COLLECTION_NAME)
public class ReportLog {

    private static final long serialVersionUID = 1L;

    public static final String COLLECTION_NAME = "report_log";

    @Id
    private String id;

    //上游报告msgid
    private String prMsgId;
    //号码
    private String phoneNo;
    //回执状态
    private String stat;
    //短信提交时间
    private String submitTime;
    //处理完成时间
    private String doneTime;
    //短消息的被叫号码
    private String destId;
    //供应商编号
    private String providerNo;
    //客户报告msgid
    private String originCrMsgId;
    //客户报告msgid
    private String crMsgId;
    //客户报告Account
    private String crAccount;

    //submitLogId
    private String submitId;

    //创建时间
    private Date createDate;

    private Long customerId;

    private String ymd;

    @JSONField(name = "dMsgId")
    private String dMsgId;

    @JSONField(name = "dSeq")
    private int dSeq;

    private String allCrMsgIds;
    private Long channelId;
    private int msgSize;

    private Integer needProviderDest;

}
